package team.southcat.wsyygh.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import team.southcat.wsyygh.common.result.Result;
import team.southcat.wsyygh.model.pojo.user.Patient;

@FeignClient("service-user")
@Component
public interface PatientFeignClient {
    @GetMapping("/admin/user/patient/getPatientById/{id}")
    public Result getPatientById(@PathVariable("id") Long id);

    @GetMapping("/admin/user/patient/getById/{id}")
    public Patient getById(@PathVariable("id") Long patientId);
}
